<script setup lang="ts">
import { onMounted, ref } from "vue"

const activeKey = ref('1');


onMounted(() => {})
</script>
<template>
    <div class="right">
        <div class="tab">
            <a-tabs v-model:activeKey="activeKey" type="card">
              <a-tab-pane key="1" tab="属性">
                <dl class="tab-dl">
                  <p class="dl-title">实例列表</p>
                  <dd class="tab-dd">
                    <p class="dd-text">张江</p>
                    <a-button size="small">查看属性</a-button>
                  </dd>
                  <dd class="tab-dd">
                    <p class="dd-text">石泉</p>
                    <a-button size="small">查看属性</a-button>
                  </dd>
                </dl>
                <dl class="tab-dl">
                  <p class="dl-title">实例列表</p>
                  <dd class="tab-dd">
                    <p class="dd-text">LDC1</p>
                    <a-button size="small">查看属性</a-button>
                  </dd>
                  <dd class="tab-dd">
                    <p class="dd-text">LDC2</p>
                    <a-button size="small">查看属性</a-button>
                  </dd>
                  <dd class="tab-dd">
                    <p class="dd-text">LDC3</p>
                    <a-button size="small">查看属性</a-button>
                  </dd>
                </dl>
                <dl class="tab-dl">
                  <p class="dl-title">实例列表</p>
                  <dd class="tab-dd">
                    <p class="dd-text">192.168.10.3</p>
                    <a-button size="small">查看属性</a-button>
                  </dd>
                </dl>
              </a-tab-pane>
              <a-tab-pane key="2" tab="行为">
                <div class="behavior-tab">
                    <a-button size="large" type="primary">事实资产校验</a-button>
                </div>
              </a-tab-pane>
            </a-tabs>
        </div>
    </div>
</template>
<style lang="css" scoped>
.right {
  width: 260px;
  height: 600px;
  overflow: auto;
  /* height: 100%; */
  box-sizing: border-box;
  margin: 0 4px;
  /* padding: 10px; */
    /* z-index: 99; */
    position: absolute;
    right: 0;
    border: 1px solid #eee;
    background-color: #fff;
  }
  .tab-dl {
    padding: 6px;
  }
  .dl-title {
    padding-left: 10px;
    line-height: 30px;
    /* text-align: center; */
    font-weight: 600;
    font-style: 16;
    background-color: #eee;
  }
  .tab-dd {
    display: flex;
    padding: 0 10px;
    /* align-items: center; */
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
  }
  .dd-text {
    height: 24px;
    line-height: 24px;
  }
  .behavior-tab {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
</style>
